package com.yiji.fintech.musfinance.common.dispatcher.base;

import org.springframework.boot.logging.LogLevel;

/**
 * Created by ouwen@yiji.com} on 2017/9/14.
 */
public abstract class BaseLogDispatcher<T> {
    /**
     * 执行日志拦截
     * @param o
     * @param m
     * @param l
     */
    public void doExcute(T o,String m,LogLevel l){
        dispatch(o,m,l);
    }

    /**
     * 异步日志分发
     * @param o
     * @param m
     * @param l
     */
    protected abstract void dispatch(T o, String m, LogLevel l);
}
